import { BROWSER_MODE, SET_BROWSER_MODE } from 'Constants/webConstants';

const initialState = {
  mode: BROWSER_MODE.HORIZONTAL_1920,
};

export default function webReducer(state = initialState, action) {
  switch (action.type) {
    case SET_BROWSER_MODE: {
      return Object.assign({}, state, {
        mode: action.mode,
      });
    }
    default:
      return state;
  }
}
